import request from "@/utils/request";

export async function deptList(params) {
  return request(`/dept/query`, {
    method: "POST",
    body: {
      ...params,
    }
  });
}

export async function removeDept(params) {
  return request(`/dept/del/${params.key}`, {
    method: "POST",
    body: {}
  });
}

export async function addDept(params) {
  return request("/dept/add", {
    method: "POST",
    body: {
      ...params
    }
  });
}
export async function deptDetail(params) {
  return request(`/dept/detail/${params.deptNo}`, {
    method: "POST",
    body:{}
  });
}
export async function updateRule(params) {
  return request("/dept/edit", {
    method: "POST",
    body: {
      ...params
    }
  });
}
export async function sortChange(params) {
  return request("/dept/sort/change", {
    method: "POST",
    body: params
  });
}

